package com.pshcp.doctor.tool;

import com.pshcp.doctor.vo.statistics.DataSummaryItemVO;
import com.pshcp.doctor.vo.statistics.DataSummaryVO;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: TODO
 * @Author: xiaoche
 * @Date: 2023/3/15 00:43
 */
public class DoctorStatisticsTool {

    public static List<DataSummaryVO> buildGetDataSummary(Integer wzlCount) {
        List<DataSummaryVO> list = new ArrayList<>();
        DataSummaryVO dataSummaryVO1 = new DataSummaryVO();
        dataSummaryVO1.setType(0);
        dataSummaryVO1.setName("问诊");
        dataSummaryVO1.setTotal(0L);
        List<DataSummaryItemVO> items1 = new ArrayList<>();
        items1.add(new DataSummaryItemVO(0, "问诊量", Long.parseLong(wzlCount.toString())));
        items1.add(new DataSummaryItemVO(1, "接诊量", 0L));
        items1.add(new DataSummaryItemVO(2, "完成量", 0L));
        items1.add(new DataSummaryItemVO(3, "退单量", 0L));
        items1.add(new DataSummaryItemVO(4, "开方问诊量", 0L));
        dataSummaryVO1.setItems(items1);
        list.add(dataSummaryVO1);
        DataSummaryVO dataSummaryVO2 = new DataSummaryVO();
        dataSummaryVO2.setType(0);
        dataSummaryVO2.setName("处方");
        dataSummaryVO2.setTotal(0L);
        List<DataSummaryItemVO> items2 = new ArrayList<>();
        items2.add(new DataSummaryItemVO(0, "处方量", 0L));
        items2.add(new DataSummaryItemVO(0, "支付量", 0L));
        dataSummaryVO2.setItems(items2);
        list.add(dataSummaryVO2);
        DataSummaryVO dataSummaryVO3 = new DataSummaryVO();
        dataSummaryVO3.setType(0);
        dataSummaryVO3.setName("患者");
        dataSummaryVO3.setTotal(0L);
        List<DataSummaryItemVO> items3 = new ArrayList<>();
        items3.add(new DataSummaryItemVO(0, "问诊患者", 0L));
        dataSummaryVO3.setItems(items3);
        list.add(dataSummaryVO3);
        DataSummaryVO dataSummaryVO4 = new DataSummaryVO();
        dataSummaryVO4.setType(0);
        dataSummaryVO4.setName("运营");
        List<DataSummaryItemVO> items4 = new ArrayList<>();
        items4.add(new DataSummaryItemVO(0, "关注", 0L));
        items4.add(new DataSummaryItemVO(1, "评价", 0L));
        items4.add(new DataSummaryItemVO(2, "累计关注", 0L));
        items4.add(new DataSummaryItemVO(3, "累计评价", 0L));
        dataSummaryVO4.setItems(items4);
        list.add(dataSummaryVO4);
        return list;
    }
}
